package com.zjj.learn.designmodel.work.facade;

public class XiaoaiTongxue {

    private TV tv;

    private Light light;

    private AirCondition airCondition;

    public XiaoaiTongxue() {
        tv = new TV();
        light = new Light();
        airCondition = new AirCondition();
    }

    public void sleep(){
        System.out.println("主人要休息了");
        tv.off();
        airCondition.sleep();
        light.sleep();
        System.out.println("主人，环境已经调到睡觉模式，晚安");
    }
}
